local skel = fk.CreateSkill {
  name = "efengqi__fenwei",
  tags = {Skill.Limited},
}

Fk:loadTranslationTable{
  ["efengqi__fenwei"] = "奋威",
  [":efengqi__fenwei"] = "限定技，当一张锦囊牌指定多个目标后，你可令此牌对其中任意个目标无效。",
  ["#efengqi__fenwei-choose"] = "奋威：你可以令此%arg对任意个目标无效",

  ["$efengqi__fenwei1"] = "奋勇当先，威名远扬！",
  ["$efengqi__fenwei2"] = "哼！敢欺我东吴无人。",
}

skel:addEffect(fk.TargetSpecified, {
  anim_type = "defensive",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(skel.name) and data.card.type == Card.TypeTrick and #data.use.tos > 1 and data.firstTarget
    and player:usedSkillTimes(skel.name, Player.HistoryGame) == 0
  end,
  on_cost = function(self, event, target, player, data)
    local tos = player.room:askToChoosePlayers(player, {
      min_num = 1, max_num = 99, skill_name = skel.name, targets = data.use.tos,
      prompt = "#efengqi__fenwei-choose:::"..data.card:toLogString(),
    })
    if #tos > 0 then
      event:setCostData(self, {tos = tos})
      return true
    end
  end,
  on_use = function(self, event, target, player, data)
    data:setNullified(event:getCostData(self).tos)
  end,
})



return skel
